class ChooseLabelBean {
  String key;
  String content;
  bool selected;
  String urlScheme;

  ChooseLabelBean(
      {this.key, this.content, this.selected = false, this.urlScheme});

  factory ChooseLabelBean.fromJson(Map<String, dynamic> json) {
    return ChooseLabelBean(
      key: json["key"],
      content: json["content"],
      selected: json["selected"].toLowerCase() == 'true',
      urlScheme: json["urlScheme"],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      "key": this.key,
      "content": this.content,
      "selected": this.selected,
      "urlScheme": this.urlScheme,
    };
  }
}
